package com.hksj.jetlinks.mapper;

import com.hksj.jetlinks.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hksj.jetlinks.vo.MenuVO;
import com.hksj.jetlinks.vo.RoleVO;
import com.hksj.jetlinks.vo.UserDetailVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户信息 dao 接口
 * @author chenxingqing
 */
public interface JetUserMapper extends BaseMapper<User> {

    List<MenuVO> listUserMenu(@Param("userId") String userId);

    List<RoleVO> listUserRole(@Param("userId")String userId);

    List<MenuVO> listAllMenu();

    UserDetailVO getUserDetail(@Param("userId") String userId);

    void updatePhoneNumber(@Param("userId")String userId, @Param("phoneNumber") String phoneNumber);
}
